package demo04;

/**
 * @author: WangPeng
 * @createTime: 2022/10/31 17:48
 * @description:
 * @version: v1.0
 */
public class Test {
    public static void main(String[] args) {
        BankCard bankCard = new BankCard(0);
        Boy boy = new Boy(bankCard);
        Girl girl = new Girl(bankCard);
        Thread t1 = new Thread(boy,"小明");
        Thread t2 = new Thread(girl,"小红");
        t1.start();
        t2.start();

    }
}
